package com.jy.event.dao;

import com.jy.event.domain.StorePay;
import com.jy.event.enums.OrderPayChannel;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by lihu on 2017/11/17.
 */
public interface StorePayDao extends CrudRepository<StorePay, Integer> {

    StorePay findTop1ByStoreIdAndChannel(String storeId, OrderPayChannel channel);

    List<StorePay> findAllByMchIdIsNotNullAndStartEnabledIsTrue();
}
